package com.equipment.management.service;

import com.equipment.management.entity.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface UserService {

    PageInfo<Map> findAllUser(int pageNum, int pageSize, String name);

    User getUserByMessage(String account, String password) throws Exception;

    int addUser(User user) throws Exception;

    int deleteUser(int id);

    User getUserByAccount(String account);
}
